@extends('layouts.admin')

@section('title', 'Banner列表')

@section('content')
    <div id="pad-wrapper" class="users-list">
        <div class="row header">
            <h3>管理员列表</h3>

            <div class="col-md-10 col-sm-12 col-xs-12 pull-right">
                <a href="/admin/admin_users/create" class="btn-flat success pull-right">
                    <span>&#43;</span>
                    新增管理员
                </a>
            </div>
        </div>
        <!-- Users table -->
        <div class="row">
            <div class="col-md-12">
                <table class="table table-hover">
                    <thead>
                    <tr>
                        <th class="col-md-1 sortable">
                            ID
                        </th>
                        <th class="col-md-1 sortable">
                            <span class="line"></span>登录名
                        </th>
                        <th class="col-md-1 sortable">
                            <span class="line"></span>邮箱
                        </th>
                        <th class="col-md-1 sortable">
                            <span class="line"></span>操作
                        </th>
                    </tr>
                    </thead>
                    <tbody>
                    @foreach($admin_users as $admin_user)
                        <tr>
                            <td>
                                {{$admin_user->id}}
                            </td>
                            <td>
                                {{$admin_user->name}}
                            </td>
                            <td>
                                {{$admin_user->email}}
                            </td>
                            <td>
                                <a href="/admin/admin_users/{{$admin_user->id}}/edit" class="btn btn-primary">编辑</a>
                            </td>
                        </tr>
                    @endforeach
                    </tbody>
                </table>
            </div>
        </div>
        <ul class="pagination pull-right">
        </ul>
    </div>

@endsection